<html>
<body>
Start Data:
<br>
<?php 
echo $_POST["sYear"]; 
echo "<br>";
echo $_POST["sMonth"]; 
echo "<br>";
echo $_POST["sDay"]; 
echo "<br>";
echo $_POST["sHour"]; 
echo "<br>";
echo $_POST["sMin"]; 
echo "<br>";
echo "End Data:";
echo "<br>";
echo $_POST["eYear"]; 
echo "<br>";
echo $_POST["eMonth"]; 
echo "<br>";
echo $_POST["eDay"]; 
echo "<br>";
echo $_POST["eHour"];
echo "<br>"; 
echo $_POST["eMin"]; 
echo "<br>";

///$start = $_POST["sYear"] + $_POST["sMonth"] + $_POST["sDay"] + $_POST["sHour"] + $_POST["sMin"];
///$end = $_POST["eYear"] + $_POST["eMonth"] + $_POST["eDay"] + $_POST["eHour"] + $_POST["eMin"];

$test = `python graph.py`;
echo $test;


try
{
echo "BLARG!!!";
  $database = new SQLiteDatabase('graph.db', 0666, $error);
echo "BLARG!!!";
}
catch(Exception $e) 
{
echo "BLARG!!!";
  die($error);
}
$query = "SELECT * FROM userdata ORDER BY value DESC";

echo $query;


if($result = $database->query($query, SQLITE_BOTH, $error))
{
  while($row = $result->fetch())
  {
    print("Title: {$row['name']} <br />" .
          "Director: {$row['value']} <br />".
          "Year: {$row['hash']} <br /><br />");
  }
}
else
{
  die($error);
}


?>


</body>
</html>
